If is any symbol, we can sometimes eliminate multiple arrows and labels by using to mean "any symbol except a."
图灵机的应用
Recoganize Language 识别语言
Let be a TM, we say decides a language if
for every , , accepts
for every , , rejects
A language is recursive(decidable) if it is decided by some Turing Machine.
半判定 semidecide and L(M)
we can said that M semidecides L(M)
Theorem: If is recurisive, must be recursively enumerable
Theorem: If is recurisive, must be recursive
graph
s(semidecide) --> re(recursively enumerable)
re --> s
d(decide) --> rl(recurive language)
rl --> d
rl --充分条件--> re
subgraph 决定
s
d
end
Prove that = {"": is a TM that halts on some input} is recursive enumerable
Let (sort by length)
Construct = on input "M"
for i = 1, 2, 3, ...
for s = , , , ...
run on for steps
if halts on within steps
halt
PS: 这是一种常用的技巧:限制每次的运行步数,不断 扩散
Compute function 表示函数
Let be a Turing machine, let be an alphabet, and let . Suppose that M halts on input , and that for some . Then is called the output of on input, and is denoted .
Now let be any function from to . We say that computes function if, for all , . A function is called recursive, if there is a Turing machine that computes .